﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="Club.aspx.cs" Inherits="Autenticazione.Club" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
    <title></title>
    <link href=Stile.css rel=Stylesheet type="text/css"></link>
</head>
<body>
    <form id="form1" runat="server">
    <div id="dvTop" style="height: 200px; border: 1px" align="center">
            <table width="100%">
                <tr style="height: 50px">
                    <td>&nbsp;</td>
                </tr>
                <tr style="height: 100px">
                    <td align="center">
                        <table>
                            <tr>
                                <td class="lblTitleHRef"><a href="Autenticazione.aspx">Login</a></td>
                                <td class="lblTitleNotHRef">Club</td>
                                <td class="lblTitleHRef"><a href="Coaches.aspx">Allenatori</a></td>
                                <td class="lblTitleHRef"><a href="Atleti.aspx">Atleti</a></td>
                                <td class="lblTitleHRef"><a href="Iscrizioni.aspx">Iscrizioni</a></td>
                            </tr>
                        </table>
                    </td>
                </tr>
                <tr style="height: 50px">
                    <td>&nbsp;</td>
                </tr>
            </table>
        </div>
    <table id="tblClub" width="100%">
        <tr>
            <td colspan="2" align="right">
                <asp:Label ID="msgLoggedUser" runat="server" CssClass="lblLoggedUser" Text=""></asp:Label>&nbsp;|&nbsp;<a href="Logout.aspx">Logout</a></td>
            </td>
        </tr>
        <tr>
            <td colspan="2">&nbsp;</td>
        </tr>
        <tr>
            <td colspan="2" align="center" class="lblInfo">
                Inserire tutti i dati relativi al club, premere sul pulsante <I><U>Memorizza</U></I>, quindi passare alla scheda <I><U>Allenatori</U></I>
            </td>
        </tr>
        <tr>
            <td colspan="2">&nbsp;</td>
        </tr>
        <tr><td colspan="2" align="center">
            <table width="60%">
                <tr>
                    <td style="width: 20%"><asp:Label ID="lblClub" CssClass="lblBold" runat="server" Text="Club" /></td>
                    <td style="width: 60%" align="left">
                        <asp:TextBox id="txtClub" MaxLength="50" width="100%" runat="server"></asp:TextBox>
                    </td>
                    <td>
                        <asp:RequiredFieldValidator ID="ClubValidator" ControlToValidate="txtClub" runat="server" 
                            Display="Dynamic" CssClass="err" ErrorMessage="(*)"></asp:RequiredFieldValidator>

                    </td>
                </tr>
                <tr>
                    <td style="width: 20%"><asp:Label ID="lblCitta" CssClass="lblBold" runat="server" Text="Città" /></td>
                    <td style="width: 60%" align="left">
                        <asp:TextBox id="txtCitta" MaxLength="25" width="100%" runat="server"></asp:TextBox>
                    </td>
                    <td>
                        <asp:RequiredFieldValidator ID="CittaValidator" ControlToValidate="txtCitta" runat="server" 
                            Display="Dynamic" CssClass="err" ErrorMessage="(*)"></asp:RequiredFieldValidator>
                    </td>
                </tr>
                <tr>
                    <td style="width: 20%"><asp:Label ID="lblRegione" CssClass="lblBold" runat="server" Text="Regione" /></td>
                    <td style="width: 60%" align="left">
                        <asp:DropDownList ID="cboRegione" runat="server" Width="100%" Height="20px"></asp:DropDownList>
                    </td>
                    <td></td>
                </tr>
                <tr>
                    <td style="width: 20%"><asp:Label ID="lblTelefono" CssClass="lblBold" runat="server" Text="Telefono" /></td>
                    <td style="width: 60%" align="left">
                        <asp:TextBox id="txtTelefono" MaxLength="20" width="100%" runat="server"></asp:TextBox>
                    </td>
                    <td>
                        <asp:RequiredFieldValidator ID="TelefonoValidator" ControlToValidate="txtTelefono" runat="server" 
                            Display="Dynamic" CssClass="err" ErrorMessage="(*)"></asp:RequiredFieldValidator>
                        <asp:RegularExpressionValidator ID="RegTelefonoClub" runat="server" 
                                    ErrorMessage="Numero di telefono non valido" Display="Dynamic" CssClass="err" ControlToValidate="txtTelefono" ValidationExpression="([0-9]\-?)*">
                                    </asp:RegularExpressionValidator>
                    </td>
                </tr>
                <tr>
                    <td colspan="3">&nbsp;</td>
                </tr>
                <tr>
                    <td colspan="3" align="center">
                        <asp:Button runat="server" Text="Memorizza" 
                        ID="btnSalva" CssClass="btn" onclick="btnSalva_Click"  />
                    </td>
                </tr>
                <tr>
                    <td colspan="3">&nbsp;</td>
                </tr>
            </table>
        </td></tr>
    </table>
    </form>
    
</body>
</html>
